package archforce.atp.x.ui.impl.common.model;

import archforce.atp.x.ui.impl.left.IPPortModel;
import archforce.atp.x.ui.impl.right.IPPortMappingModel;
import com.alibaba.fastjson.JSON;

import java.io.Serializable;
import java.util.List;

/**
 * @author wx
 * @version 1.0
 * @date 2022/4/13 17:18
 */
public class JumpMappingModel implements Serializable {

    private Integer id;

    private List<IPPortModel> jumpConfig;

    private List<IPPortMappingModel> mappingModel;

    public JumpMappingModel(Integer id, List<IPPortModel> jumpConfig, List<IPPortMappingModel> mappingModel) {
        this.id = id;
        this.jumpConfig = jumpConfig;
        this.mappingModel = mappingModel;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public List<IPPortModel> getJumpConfig() {
        return jumpConfig;
    }

    public void setJumpConfig(List<IPPortModel> jumpConfig) {
        this.jumpConfig = jumpConfig;
    }

    public List<IPPortMappingModel> getMappingModel() {
        return mappingModel;
    }

    public void setMappingModel(List<IPPortMappingModel> mappingModel) {
        this.mappingModel = mappingModel;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
